//
//  RecordList.m
//  YYPHSpeedJump
//
//  Created by sujiang on 16/2/3.
//  Copyright © 2016年 sujiang. All rights reserved.
//

#import "RecordList.h"

@implementation RecordList

- (void)awakeFromNib {
    // Initialization code
}

- (void)setModel:(RecordModel *)model
{
    if (model.mall_id == nil) {
        if (model.integral_score.integerValue > 0) {
            self.nameLb.text = [NSString stringWithFormat:@"+%@积分", model.integral_score];
        } else {
            self.nameLb.text = [NSString stringWithFormat:@"%@积分", model.integral_score];
        }
    } else {
        self.nameLb.text = [NSString stringWithFormat:@"%@积分", model.integral_score];
    }
    self.reasonLb.text = model.source_name;
    self.timeLb.text = model.create_time;
}






- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
